package com.dns.customers.service;

import com.itextpdf.text.Document;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.OutputStream;

/**
 * @author :  yulei
 * @data :  2018/7/27 14:10
 * @Version :  1.0
 **/

public interface ExportService {
    /**
     * 以PDF格式导出订单明细信息
     * @param document
     * @param request
     */
    void exportOrderDetailPdf(Document document, HttpServletRequest request) throws Exception;

    /**
     * 以Excel格式导出订单明细信息
     * @param out
     * @param request
     */
    void exportOrderDetailByExcel(HttpServletRequest request, OutputStream out) throws Exception;

    /**
     * 批量导入根域名信息（回显）
     * @param file
     * @return
     */
    public String importRootDomains(MultipartFile file);
    /**
     * 批量导入子域名信息（回显）
     * @param file
     * @return
     */
    public String importChildDomains(MultipartFile file,String custId);
    /**
     * 验证下发任务时的子域名是否正确
     * @param custId
     * @param domainName
     * @return
     */
    public String checkDomainFormat(String custId,String domainName);

}

